package nuc.ss.wl.entity;

public class Student {

    private int sno;
    private String sname;
    private String spassword;
    private String ssalt;
    private int classno;
    private String ssex;
    private int sage;
    private String sphone;

    private Special_Situation special_situation;

    public Special_Situation getSpecial_situation() {
        return special_situation;
    }

    public void setSpecial_situation(Special_Situation special_situation) {
        this.special_situation = special_situation;
    }

    public Student(int sno, String sname, String spassword, String ssalt, int classno, String ssex, int sage, String sphone, Special_Situation special_situation) {
        this.sno = sno;
        this.sname = sname;
        this.spassword = spassword;
        this.ssalt = ssalt;
        this.classno = classno;
        this.ssex = ssex;
        this.sage = sage;
        this.sphone = sphone;
        this.special_situation = special_situation;
    }

    public Student() { }

    public Student(int sno, String sname, String spassword, String ssalt, int classno, String ssex, int sage, String sphone) {
        this.sno = sno;
        this.sname = sname;
        this.spassword = spassword;
        this.ssalt = ssalt;
        this.classno = classno;
        this.ssex = ssex;
        this.sage = sage;
        this.sphone = sphone;
    }


    public int getSno() {
        return sno;
    }

    public void setSno(int sno) {
        this.sno = sno;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public String getSpassword() {
        return spassword;
    }

    public void setSpassword(String spassword) {
        this.spassword = spassword;
    }

    public String getSsalt() {
        return ssalt;
    }

    public void setSsalt(String ssalt) {
        this.ssalt = ssalt;
    }

    public int getClassno() {
        return classno;
    }

    public void setClassno(int classno) {
        this.classno = classno;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public int getSage() {
        return sage;
    }

    public void setSage(int sage) {
        this.sage = sage;
    }

    public String getSphone() {
        return sphone;
    }

    public void setSphone(String sphone) {
        this.sphone = sphone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sno=" + sno +
                ", sname='" + sname + '\'' +
                ", spassword='" + spassword + '\'' +
                ", ssalt='" + ssalt + '\'' +
                ", classno=" + classno +
                ", ssex='" + ssex + '\'' +
                ", sage=" + sage +
                ", sphone='" + sphone + '\'' +
                '}';
    }
}
